package com.nchu.romantic.surprise.service;

import com.nchu.romantic.surprise.model.BaseEnity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Map;

/**
 * @author fujianjian
 * @project react-learning
 * @date 2018/10/21 下午1:11
 */
public interface BaseService<T extends BaseEnity> {


    T get(Integer id);

    T create(T record);


    T update(T record);


    void delete(Integer id);


    Page<T> selectPage(Map param, Pageable pageable);
}
